src = $(wildcard ./*.c)
obj = $(patsubst ./%.c, ../RELEASE/%.o, $(src))
target = ../RELEASE/app
CC = gcc
FLAG := -I ../include


$(target): $(obj)
	$(CC) -o $(target) $^ 

../RELEASE/%.o: ./%.c #这里一定要这样写，而不能写变量名
	$(CC) -c $^ -o $@
# $(obj): $(src)
# 	$(CC) -c $< -o $@
	
.PHONY:clean debug
clean:
	rm -rf $(obj) $(target)

debug:
	@echo $(src)
	@echo $(obj)
